<?php !defined('ACCESSING') && die('Hacking attempt');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>基本設定</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../public/style/admin.css" type="text/css" rel="stylesheet" />
<script src="../public/js/j.js" type="text/javascript"></script>
<script src="../public/js/comment.func.js" type="text/javascript"></script>
</head>

<body>
<div align="center" style="margin-top:50px">
<form id="changepassform" method="POST" action="?action=changesetting">
	<table width="80%" cellspacing="0" cellpadding="0" id="table1" height="28" border="1" bordercolor="#336699" style="border-collapse: collapse">
		<tr>
			<td bordercolor="#FFFFFF" bgcolor="#E8F1FF" height="26">
			<p align="center">系統基礎配置設定</p></td>
		</tr>
	</table>
	<table width="80%" cellspacing="1" cellpadding="3" id="table2" height="227" border="1" bordercolor="#336699">
		<tr>
			<td bordercolor="#FFFFFF" bgcolor="#E8F1FF" height="223" align="center" valign="top">
			<table border="1" width="100%" cellspacing="0" cellpadding="2" id="table3" height="215" bordercolor="#336699" style="border-collapse: collapse">
				<tr>
					<td width="39%" align="right">網站名稱：</td>
					<td width="61%" bgcolor="#FFFFFF" align="left" style="padding:5px">
                    <input type="text" name="sitename" size="20" class="inputtext" value="<?php echo $assArray[0]['svalue'];?>" /></td>
				</tr>
                <tr>
					<td width="39%" align="right">網站URL：</td>
                    <td width="61%" bgcolor="#FFFFFF" align="left" style="padding:5px">
                    <input id="siteurl" type="text" name="siteurl" class="inputtext" value="<?php echo $assArray[1]['svalue'];?>" /></td>
				</tr>
				<tr>
					<td width="39%" align="right">SMTP伺服器：</td>
					<td width="61%" bgcolor="#FFFFFF" align="left" style="padding:5px">
                    <input id="smtpserver" type="text" name="smtpserver" class="inputtext" value="<?php echo $assArray[2]['svalue'];?>" /></td>
				</tr>
				<tr>
					<td width="39%" align="right">SMTP帳戶：</td>
					<td width="61%" bgcolor="#FFFFFF" align="left" style="padding:5px">
                    <input id="smtpacount" type="text" name="smtpacount" class="inputtext" value="<?php echo $assArray[3]['svalue'];?>" /></td>
				</tr>
                <tr>
					<td width="39%" align="right">SMTP密碼：</td>
					<td width="61%" bgcolor="#FFFFFF" align="left" style="padding:5px">
                    <input id="smtppass" type="password" name="smtppass" class="inputtext" value="<?php echo $assArray[4]['svalue'];?>" /></td>
				</tr>
                <tr>
					<td width="39%" align="right">主顯帳戶：</td>
					<td width="61%" bgcolor="#FFFFFF" align="left" style="padding:5px">
                    <input id="epiphany_account" type="text" name="epiphany_account" class="inputtext" value="<?php echo $assArray[5]['svalue'];?>" /></td>
				</tr>
                <tr>
					<td width="39%" align="right">PORT：</td>
					<td width="61%" bgcolor="#FFFFFF" align="left" style="padding:5px">
                    <input id="smtpport" type="text" name="smtpport" class="inputtext" value="<?php echo $assArray[6]['svalue'];?>" /></td>
				</tr>
                <tr id="testmail">
					<td width="39%" align="right">收信帳戶：</td>
					<td width="61%" bgcolor="#FFFFFF" align="left" style="padding:5px">
                    <input id="mailadds" type="text" name="mailadds" class="inputtext" />
                    <input id="sendmail" type="button" name="sendmail" value="Sendmail" onclick="sendtestmail()" />&nbsp;
                    <span id="msgbox"></span></td>
				</tr>
				<tr>
					<td align="center" colspan="2" height="43">
                        <input type="hidden" name="action" value="changesetting" />
                        <input type="submit" value="確 定 修 改" name="B1" id="B1" />&nbsp;
                        
                    </td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
</form>
</div>
</body>
</html>